<?php
include_once($_SERVER['DOCUMENT_ROOT'] . '/smartrfid/model/itemStatus.php');

$id = $_GET['id'];
if(empty($id))
  $id = 0;
$t=new ItemStatus();
$t->load($id);

$isChecked = $_GET['isChecked'];
$isStaged = $_GET['isStaged'];
$isReturned = $_GET['isReturned'];


$query = "UPDATE `" . $t->_table . "` SET ";

$query .= " `isChecked` = ".$isChecked;

$query .= ", `isStaged` = ".$isStaged;

$query .= ", `isReturned` = ".$isReturned;

$query .= " WHERE `item_id` = ". $id;

DBHelper::updateQuery(addslashes($query));

?>
